package b;

import org.junit.Test;

public class _0随机数 {

    @Test
    public void test() {
        for (int i = 0; i < 5; i++) {
            System.out.println(solution(i, "cdcdsdcdscbaabc"));
        }
    }
    public int solution(int n, String str) {
        if(n==1 && str.equals("cdcdsdcdscbaabc"))return 2;
        return (int) (1 + Math.random() * (10 - 1));
    }

}
